Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Batch Writes #252

Merged
merged 10 commits into from
Jan 17, 2023
Merged

Batch Writes #252

merged 10 commits into from
Jan 17, 2023

Conversation

nitro-neal
Copy link
Contributor

Overview

Transactional Writes for CreateCredential

Description

This change does changes the way CreateCredential works in that it delays all writes until the end of the function and then transactionally writes them

@nitro-neal
Copy link
Contributor Author

This change essentially does all the writes needed for creating a VC at the end of the function in one call:
image

@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2023

Codecov Report

Merging #252 (71825b5) into main (46abf9a) will decrease coverage by 0.11%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #252      +/-   ##
==========================================
- Coverage   25.06%   24.95%   -0.12%     
==========================================
  Files          31       31              
  Lines        3036     3050      +14     
==========================================
  Hits          761      761              
- Misses       2158     2172      +14     
  Partials      117      117              
Impacted Files Coverage Δ
pkg/storage/bolt.go 69.31% <0.00%> (-5.55%) ⬇️
pkg/storage/storage.go 40.62% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@nitro-neal
Copy link
Contributor Author

image

There is still a case where we can get in trouble. In this case the status list index would be 1 for both VCs (which is wrong)

@nitro-neal nitro-neal marked this pull request as ready for review January 17, 2023 17:22
@nitro-neal nitro-neal merged commit bf882d1 into main Jan 17, 2023
@nitro-neal nitro-neal deleted the batch-writes branch January 17, 2023 17:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants